#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
int main(){
    FILE *fp=fopen("HEAP.INP","w");
    long i,n;
    n=1000000+rand();
    fprintf(fp,"%ld",n);
    for(i=1;i<=n;i++)fprintf(fp,"\n%d",rand());
    fclose(fp);
    return 0;
}
